﻿#region Includes
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using System.Text;
#endregion

namespace xna_game_engine.source
{
    class CScreenElementText : CScreenElement
    {
    #region Members
       // private string m_FontFilename;
        //private SpriteFont m_Font;
        private string m_FontText;
        private Color m_FontColor;
    #endregion

    #region Functions
        public CScreenElementText(Vector2 pos, Color color, string text)
        {
            m_Pos = pos;
            m_Type = ScreenElementTypes.TEXT;
            m_FontText = text;
            m_FontColor = color;
        }
        public override void Draw()
        {
            GameSystems.Graphics.DrawText(m_FontText, m_Pos, m_FontColor);
        }
        public override void Init()
        {
            //m_Font = cm.Load<SpriteFont>(m_FontFilename);
        }
        public override void Update(GameTime gt)
        {
            // Todo: update, if necessary
        }
    #endregion

    #region Properties
        public string Text
        {
            get { return m_FontText; }
            set { m_FontText = value; }
        }
    #endregion
    }
}
